package org.groupg.practice;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class JsoupExample1 {
    public static void main(String[] args) {
        String html = "<html><head><title>示例页面</title></head><body></body></html>";
        Document doc = Jsoup.parse(html);
        String title = doc.title();
        System.out.println("页面标题: " + title); // 输出: 示例页面
    }
}